import request from "@/utils/request";
import { IBannerItem, IApiRes, IGoodsItem, IHotGoods } from '@/types/data'
// 轮播图
export const bannerApi = () => {
  return request<IApiRes<IBannerItem[]>>({
    url: '/home/banner',
    method: 'get',
  })
}
// 新鲜好物
export const newGoodsList = () => {
  return request<IApiRes<IGoodsItem[]>>({
    url: '/home/new'
  })
}
// 人气推荐
export const hotGoodsList = () => {
  return request<IApiRes<IHotGoods[]>>({
    url: '/home/hot'
  })
}
